


import 'dart:convert';

import 'package:erp/Entity/ServerTime.dart';

void main(List<String> args){
  var peoples = List.generate(50, (index)=> People(
    name: "name: ${index}",
    age: index + 20
  ));

  var jsonString = json.encode(peoples);
  print(jsonString);
}

class People {
  String name;
  int age;

  People.fromJson(Map<String, dynamic> json){
    name = json["name"];
    age = json["age"];
  }

  People({this.name, this.age});

  Map<String, dynamic> toJson(){
    return {
      "name": name,
      "age": age
    };
  }
}